package com.axjy.comm.util;

public class TpContext {

    private static ThreadLocal<Integer> loginUserTl=new ThreadLocal<>();

    public static void setLoginUserTl(Integer userId){
        loginUserTl.set(userId);
    }

    public static Integer getLoginUserTl(){
       Integer userId=  loginUserTl.get();
       return userId;
    }

    public static void removeLoginUserTl(){
        loginUserTl.remove();
    }


}
